#!/usr/bin/env python
# coding=utf-8
import sys
from PyQt5 import QtCore, QtGui, QtWidgets

# 纯代码手写界面运行

app = QtWidgets.QApplication(sys.argv)

widgetHello = QtWidgets.QWidget()

widgetHello.resize(280, 150)
widgetHello.setWindowTitle('Hello QT')
LabHello = QtWidgets.QLabel(widgetHello)
LabHello.setText('测试QT')
font = QtGui.QFont()
font.setPointSize(21)
font.setBold(True)
LabHello.setFont(font)
size = LabHello.sizeHint()
LabHello.setGeometry(70, 60, size.width(), size.height())
widgetHello.show()
sys.exit(app.exec_())
